package Test;

public class Factory {
	public static Caculate calcManage(String str) {
		if ("+".equals(str)) {
			return new jia();
		}else if ("-".equals(str)) {
			return new jian();
		}else if ("*".equals(str)) {
			return new sheng();
		}else if ("/".equals(str)) {
			return new chu();
		}
		return null;
	}
}
